package com.example.sqstest.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping(value = "hello")
    public String hello() {
        log.info("hello");
        return "Hello, 三清山";
    }

    @GetMapping(value = "error")
    public void error() {
        int a = 1 / 0;
        log.error("error");
    }
}
